#ifndef __AMF_DECODER_H__
#define __AMF_DECODER_H__

#include "um_basic_types.h"
#include "umapi_os_list.h"
#include "amf.h"

typedef struct Decoder {
	UM_CHAR *buf;
	UM_S32 pos;
	UM_S32 version;
	UM_S32 size;
}Decoder;

UM_CHAR * amf_load_string(Decoder *dec);
UM_DOUBLE amf_load_number(Decoder *dec);
UM_BOOL amf_load_boolean(Decoder *dec);
UM_CHAR* amf_load_key(Decoder *dec);
amf_object_t* amf_load_object(Decoder *dec);
amf_object_t* amf_load_ecma(Decoder *dec);
AMFValue* amf_load(Decoder *dec);

#endif
